﻿<UserControl x:Class="jLightTest.DemoPage2"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="SpringGreen">
        <Grid.RowDefinitions>
            <RowDefinition Height="48" />
            <RowDefinition Height="257*" />
        </Grid.RowDefinitions>
        <Button Margin="8,8,8,4" Content="Execute AJAX Call" x:Name="CallButton" Click="CallButton_Click"/>
        <ListBox Grid.Row="1" Height="238" 
                 x:Name="TwitList"
                 HorizontalAlignment="Left" Margin="12,2,0,0"  VerticalAlignment="Top" Width="376">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Image Margin="5" Width="50" Height="50" Source="{Binding Image}"/>
                        <TextBlock Width="70" Text="{Binding User}"/>
                        <TextBlock Width="210" Text="{Binding Text}" TextWrapping="Wrap"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
